Ext.onReady(function() {
  var id = Ext.getHashParam('id');
  
  MyApp.common.sendJsonRequestAndDoOnSuccess({
      url: restPath + '/view-row/view-row-template-data/' + id,
      loadIndicator: "template-div"
    }, function (jsonResult) {
      var tpl = Ext.XTemplate.from('view-row-template');
      tpl.overwrite("template-div", jsonResult.data);
    }
  );
});
